<%@ Page language="c#" Inherits="Dimok.Aspx.Manager.Tracking.Tracker" CodeFile="Tracker.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<TITLE id="title" runat="server">Tracker</TITLE>
<META name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1"><META name="CODE_LANGUAGE" Content="C#"><META name="vs_defaultClientScript" content="JavaScript"><META name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<?XML:NAMESPACE PREFIX="DIMOK"/>
<?IMPORT namespace="DIMOK" implementation="/include/htc/datagrid.htc">
<LINK rel="stylesheet" type="text/css" href="/CSS/Outlook.css">
<SCRIPT src="/include/common.js"></SCRIPT>
<SCRIPT src="/include/RDS.js"></SCRIPT>
<SCRIPT src="/include/soap.js"></SCRIPT>
<SCRIPT src="/include/XML.js"></SCRIPT>
<SCRIPT src="/include/Events.js"></SCRIPT>
<SCRIPT src="/manager/common/common.js"></SCRIPT>
<STYLE>
CAPTION {white-space:nowrap;
				 behavior: url(/Include/HTC/Toggle.htc)}
TD {white-space:nowrap;font:menu}
</STYLE>
</HEAD>
<BODY style="margin:0px" scroll="no">
<TABLE width="100%">
	<COL align="right">
	<TR><TD>Tracker : </TD>
			<TD nowrap>
				<SPAN datasrc="#XmlTrackerInfo" datafld="TrackerID" onclick="showAirCeptHistory(innerText,chkLocate.checked);chkLocate.checked=false" style="cursor:hand" title="Click to see AirCept history"></SPAN>
			</TD>
			<TD>
				<INPUT type="checkbox" id="chkLocate" style="BORDER:none"> <LABEL for="chkLocate">Locate</LABEL>
			</TD>
	</TR>
	<TR><TD>Status : </TD>
			<TD><SELECT onchange="TrackerStatus(this)" datasrc="#XmlTrackerInfo" datafld="StatusID" id="selTrackerStatus" runat="server"></SELECT></TD>
	</TR>
</TABLE>
<HR align="center">
<ASP:DATAGRID Caption="Tracker History" CaptionAlign="left" ID="gridHist" Runat="server" style="BORDER-COLLAPSE: collapse" AutoGenerateColumns="True" CellPadding="1" CellSpacing="1" GridLines="Both" BorderStyle="Solid" >
</ASP:DATAGRID>
<XML id="xmlTrackerInfo" runat="server"></XML>
</BODY>
</HTML>
<SCRIPT language="javascript">
initWS("Common","../Common/Common.asmx");
setTimeout("document.body.focus()",100);
gridHist.caption.setAttribute("state","+");
gridHist.caption.ontoggle = cropMe;
function TrackerStatus(el){
	var rs = xmlTrackerInfo.recordset;
	var ret = WS(CO(),rs("TrackerID").value,el.value);
	if( showSOAPError(ret) )return false;
	fireListRefresh({menuPath:"Tracking -> Trackers"});
	fillSelect(getRSFromDS(ret.value),selTrackerStatus,"MenuName","MenuID");
}
function cropMe(){
	setTimeout(function(){cropWindow()},1000)
}
</SCRIPT>
